package order;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 汽车启动的过程
 * 1. 检查
 * 2. 松手刹
 * 3. 挂挡
 * 4. 踩油门
 *
 * @author Administrator
 * @date 2022/03/31 15:21
 **/
@Data
@AllArgsConstructor
public class Car {

    /**
     * 汽车id
     */
    private long carId;

    /**
     * desc
     */
    private String desc;

    static List<Car> builderCar(){
        ArrayList<Car> cars = new ArrayList<>();

        /**
         * 构建三个完整的过程 ， 顺序穿插
         */
        cars.add(new Car(1006L, "检查"));
        cars.add(new Car(1007L, "检查"));
        cars.add(new Car(1008L, "检查"));
        cars.add(new Car(1006L, "松手刹"));
        cars.add(new Car(1007L, "松手刹"));
        cars.add(new Car(1006L, "挂挡"));
        cars.add(new Car(1007L, "挂挡"));
        cars.add(new Car(1006L, "踩油门"));
        cars.add(new Car(1007L, "踩油门"));
        cars.add(new Car(1008L, "松手刹"));
        cars.add(new Car(1008L, "挂挡"));
        cars.add(new Car(1008L, "踩油门"));

        return cars;








    }
}
